package com.myaxuan.util;

/**
 * Created by pc255 on 2018/5/2.
 */
public class ExtendsThread extends  Thread {


	String ThreadName;

	public ExtendsThread( String threadName){
		this.ThreadName = threadName;
	}
	@Override
	public void run() {
		int count = 10;
		while(true){
			count--;
			System.out.println(ThreadName+"线程:"+count);
			if (count==0){
				break;
			}
		}
	}

	public static void main(String[] args) {
		new ExtendsThread("A").start();
		new ExtendsThread("B").start();
	}
}
